//
//  ScoreMainViewController.m
//  LotteryProject
//
//  Created by 阳光 on 17/7/9.
//  Copyright © 2017年 阳光. All rights reserved.
//

#import "ScoreMainViewController.h"
#import "NotFinishedScoreViewController.h"
#import "FinishedScoreViewController.h"
#import "MyConcernScoreViewController.h"


@interface ScoreMainViewController ()

@end

@implementation ScoreMainViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.title=@"比分";

    // 初始化样式
    [self initView];

    // 添加子控制器
    [self addChildVC];

}

// 初始化样式
-(void)initView
{
    // 设置标题栏样式
    [self setUpTitleEffect:^(UIColor *__autoreleasing *titleScrollViewColor, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor, UIFont *__autoreleasing *titleFont, CGFloat *titleHeight, CGFloat *titleWidth)
     {
         *titleScrollViewColor=[UIColor whiteColor];
         *norColor=Color666666;
         *selColor=MainColor;
         *titleWidth=APPW/3;
     }];

    // 设置下标
    [self setUpUnderLineEffect:^(BOOL *isUnderLineDelayScroll, CGFloat *underLineH, UIColor *__autoreleasing *underLineColor, BOOL *isUnderLineEqualTitleWidth) {
        *isUnderLineDelayScroll=YES;
        *underLineColor=MainColor;
        *underLineH=2;
    }];
}

// 添加子控制器
-(void)addChildVC
{
    NotFinishedScoreViewController *vc1=[NotFinishedScoreViewController new];
    vc1.title=@"未结束";
    [self addChildViewController:vc1];

    FinishedScoreViewController *vc2=[FinishedScoreViewController new];
    vc2.title=@"已结束";
    [self addChildViewController:vc2];

    MyConcernScoreViewController *vc3=[MyConcernScoreViewController new];
    vc3.title=@"我的关注";
    [self addChildViewController:vc3];

}

@end
